package com.gams.springboot.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * @author tql
 * @current springboot
 * @create 2021-09-2-10:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="sys_user")
public class User {
    @Column(name="id")
    private long id;
    @Column(name="name")
    private String name;
    @Column(name="account")
    private String account;
    @Column(name="password")
    private String password;
    @Column(name="status")
    private int status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(name="createTime")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(name="updateTime")
    private Date updateTime;

}
